package com.hyopt.common.push.config;

import lombok.extern.slf4j.Slf4j;

import java.util.Arrays;
import java.util.HashSet;

@Slf4j
public class UmIosConfig {

    public static HashSet<String> APS_KEYS = new HashSet<String>(Arrays.asList(new String[]{
            "alert",
            "badge",
            "sound",
            "content-available",
            "category"
    }));

    public static HashSet<String> POLICY_KEYS = new HashSet<String>(Arrays.asList(new String[]{
            "start_time",
            "expire_time",
            "out_biz_no",
            "apns_collapse_id"
    }));






//    public static boolean setCustomizedField(Map content,String key, String value) throws Exception {
//        Map payloadJson = null;
//        if (ObjectUtil.isEmpty(content.get("payload"))) {
//            payloadJson = (Map) content.get("payload");
//        } else {
//            payloadJson = new HashMap();
//            content.put("payload", payloadJson);
//        }
//        payloadJson.put(key, value);
//        return true;
//    }
//
//    public static void setAlert(Map content,String token) throws Exception {
//        setIOSKeyValue(content,"alert", token);
//    }
//
//    public static void setAlert(Map content,Map jsonObject) throws Exception {
//        setIOSKeyValue(content,"alert", jsonObject);
//    }
//
//    public void setBadge(Map content,Integer badge) throws Exception {
//        setIOSKeyValue(content,"badge", badge);
//    }
//
//    public static void setSound(Map content,String sound) throws Exception {
//        setIOSKeyValue(content,"sound", sound);
//    }
//
//    public static void setContentAvailable(Map content,Integer contentAvailable) throws Exception {
//        setIOSKeyValue(content,"content-available", contentAvailable);
//    }
}
